{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=3118
  Verdict: Accepted
}
uses SysUtils, Math;
 
var
	i,ls,kk,ans:longint;
	s,t:string;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
readln(s);
ls:=length(s);
kk:=ls div 2;
if odd(ls) then inc(kk);
t:=copy(s,1,kk);
delete(s,1,kk);
writeln(s,t);
end.